package huang.com.android.intentreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


/**
 * Created by hwang on 2018/5/25.
 */

public class OtherActivity extends BroadcastReceiver{
    @Override
    public void onReceive(Context context, Intent intent) {
        //从intent当中根据key取得value
        String value = intent.getStringExtra("testIntent");
        Log.e("IntentReceiver-->Test",value);
    }
}
